Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

137
Visualizações
If "THIS" + "THIS" clicked, do this (in javascript)

I wanna do a simple thing but i do not find the correct way to do it like u saw in the title. I have some buttons which are selectionnable, i just wanna say that if one of them+ another one is selected, we cant select another one (or 2). Theorically it's really simple i think, but i wanted to have some ideas instead of doing something useless which is half working.

enter image description here

I'll try to schematize : All theses squares are divs with text in and style. When you click on them, (that's what i called "selected") they're switching color.

So for example i want that if we click on "1" + "2" : we can click only on "A" + "C" OR "A" + "D". (Not A+B).

That's the only thing i wanted to understand. I hope that you'll understand.

Thanks a lot, Cordially Zartex

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda